package com.example.novelstory.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(value = "小说分类")
@Data
public class Category {
    @ApiModelProperty("分类id")
    public int id;
    @ApiModelProperty("标题")
    public String title;
    @ApiModelProperty("上级分类id")
    public int pid;
    @ApiModelProperty("排序")
    public int sort;
    @ApiModelProperty("SEO的网页和标题")
    public String meta_title;
    @ApiModelProperty("关键字")
    public String meta_keywords;
    @ApiModelProperty("描述")
    public String meta_description;
    @ApiModelProperty("图标")
    public String icon;
    @ApiModelProperty("频道页模板")
    public String template_index;
    @ApiModelProperty("详情页模板")
    public String template_detail;
    @ApiModelProperty("筛选页模板")
    public String template_filter;
    @ApiModelProperty("外链地址")
    public String link;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty("创建时间")
    public Date create_time;
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @ApiModelProperty("更新时间")
    public Date update_time;
    @ApiModelProperty("数据状态")
    public Byte status;//tinyint
    @ApiModelProperty("分类模型")
    public Byte type;//tinyint
}
